﻿using System;
using UnityEngine;
using UnityEngine.UI;

public class UINetworkServerOnlyInteractable : MonoBehaviour
{
    private void Awake()
    {
        if (!NetworkUtility.isServer)
        {
            foreach (Selectable selectable in base.GetComponentsInChildren<Selectable>())
            {
                selectable.interactable = false;
            }
        }
    }
}

